﻿using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
using static System.Web.Razor.Parser.SyntaxConstants;
using System.Web.Mvc;

namespace StaticDemo.Identity
{
    public class ApplicationUserStore : UserStore<ApplicationUser>
    {

        //private IHomeContract homeService;

        //public IHomeContract HomeService
        //{
        //    get
        //    {
        //        if (homeService == null)
        //            homeService = DependencyResolver.Current.GetService<IHomeContract>();
        //        return homeService;
        //    }
        //}

        public ApplicationUserStore()
        {

        }
        public ApplicationUserStore(DbContext context)
        : base(context)
        {
        }

        public override async Task<ApplicationUser> FindByIdAsync(string userId)
        {
            return await base.FindByIdAsync(userId);
        }
        public override async Task<ApplicationUser> FindByNameAsync(string userName)
        {
            return await base.FindByNameAsync(userName);
        }
      
    }
}